CC=avr-gcc
CFLAGS= -Os -Wall -mcall-prologues -B/usr/local/avr/lib/ -I/usr/local/avr/include/ -mmcu=atmega32
OBJ2HEX=avr-objcopy 
TARGET=blink



program : $(TARGET).hex 
	echo "build is over"
%.obj : %.o
	$(CC) $(CFLAGS) $< -o $@

%.hex : %.obj
	$(OBJ2HEX) -R .eeprom -O ihex $< $@

clean :
	rm -f *.hex *.obj *.o


